package com.lzy.system.organization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 导航菜单
 * </p>
 *
 * @author lcc
 * @since 2023-12-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_nav")
@ApiModel(value = "SysNav对象", description = "导航菜单")
public class SysNav implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("导航名称")
    @TableField("nav_name")
    private String nav_name;

    @ApiModelProperty("导航链接")
    @TableField("nav_url")
    private String nav_url;

    @ApiModelProperty("导航排序")
    @TableField("order_index")
    private Integer order_index;

    @ApiModelProperty("父导航id")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("导航图标")
    @TableField("nav_icon")
    private String nav_icon;

    @ApiModelProperty("导航目标1：嵌入，2：打开新浏览器，3：弹出窗")
    @TableField("nav_target")
    private Integer nav_target;
}
